<template>
    <div>
        产品页面哦


        <div>
            传过来的是{{getId}}
        </div>

        <div>
            传过来的是{{$route.params.id}}
        </div>

    </div>
</template>

<script>
    export default {
        name: "Product",
        methods: {
            tohome() {
                this.$router.push('/home');
            }
        },
        computed: {
            getId() {
                return this.$route.params.id;
            }
        }
    }
</script>

<style scoped>

</style>